/*
 ============================================================================
 Page	     : 326-327
 Name        : arrchar.c
 Date	     : 20210406
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 指针数组,字符串数组
 ============================================================================
 */

#include <stdio.h>
#define SLEN 40
#define LIM 5

int main(void)
{
	const char *mytalents[LIM] = {
			"Adding numbers swiftly",
			"Multiplying accurately",
			"Stashing data",
			"Following instructions to the letter",
			"Understanding the C language"
	};
	char yourtalents[LIM][SLEN] = {
			"Walking in a straight line",
			"Sleeping",
			"Watching television",
			"Mailing letters",
			"Reading email"
	};

	puts("Let's compare talents.");
	printf("%-36s %-25s\n", "My Talents", "Your Talents");
	for(int i = 0; i < LIM; i++)
	{
		printf("%-36s %-25s\n", mytalents[i], yourtalents[i]);
	}
	printf("\nsize of mytalents: %zd, sizeof yourtalents: %zd\n", sizeof(mytalents), sizeof(yourtalents));

	return 0;
}

